import request from '@/utils/request'

const knowArchiveApi = {
    /**
     * 文档列表
     */
    lists(params: {
        page_no?: number;
        page_size?: number;
        keyword?: string;
    }): Promise<any> {
        return request.get({
            url: '/agent/know/archive/lists',
            params
        })
    },

    /**
     * 文档详情
     */
    detail(id: number): Promise<any> {
        return request.get({
            url: '/agent/know/archive/detail',
            params: { id }
        })
    },

    /**
     * 文档删除
     */
    delete(ids: number[]): Promise<any> {
        return request.post({
            url: '/agent/know/archive/delete',
            params: { ids }
        })
    }
}

export default knowArchiveApi
